<div class="content">
<h1>Add a comment:</h1>

<?php
echo $form->create('Comment');
echo $form->input('comment');
echo $form->input('item_id', array('type' => 'hidden', 'value' => $item));
if ($user != NULL){
	echo $form->input('user_id', array('type' => 'hidden', 'value' => $user['id']));
	echo "Your comment will be posted as ".'<b>'.$user['username'].'</b>';
}else{
	echo $form->input('guest_name');
}
echo $form->end('Comment');
?>
</div>